<!--
 * @Author: 橘子
 * @Date: 2022-06-27 17:16:59
 * @FilePath: \教育资助\src\components\headers\index.vue
 * @Project_description: 项目介绍
 * @Description: 代码是我抄的，不会也是真的
-->
<template>
  <div class="title">
    <div class="box">
      <div class="box-text">{{ title }}</div>
      <div class="box-yellow"><div class="box-yellow-top"></div></div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "我是内容",
    },
  },
};
</script>

<style lang="scss" scoped>
.box {
  display: inline-block;
  box-sizing: border-box;

  .box-text {
    z-index: 999999;
    justify-content: center;
    position: relative;
    color: #333333;
    font-weight: 700;
  }

  .box-yellow {
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
    margin-top: -3px;
    .box-yellow-top {
      z-index: 1;
      width: 27px;
      height: 4px;
      background-color: #fd7c04;
      border-radius: 5px;
      opacity: 0.8;
    }
  }
}
</style>
